
public class Book {
	public String name;
	public String auth;
	public String chubanshe;
	public String date;


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getAuth() {
		return auth;
	}

	public void setAuth(String auth) {
		this.auth = auth;
	}
	public String getChubanshe() {
		return chubanshe;
	}

	public void setChubanshe(String chubanshe) {
		this.chubanshe = chubanshe;
	}
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
	
	 @Override
	   public boolean equals(Object obj) {
	        if (obj instanceof Book) {
	            Book bo= (Book) obj;
	            return name.equalsIgnoreCase(bo.getName().trim());//book.getName().trim()
	        }
	        return false;
	    }
		
}
